package com.kailong.servlet;

import com.kailong.dao.ManageReserve;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;

@WebServlet("/test")
public class Test extends HttpServlet {
    @Override
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        String sno = "1918110125";
        String tno = "21010";
        int count = ManageReserve.cancelReserve(sno,tno);
        PrintWriter out = resp.getWriter();
        out.print(count);
    }
}
